package cn.edu.scau.cmi.luotiansheng.client;

import javafx.application.Application;
import javafx.stage.Stage;
import java.io.IOException;

import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.BorderPane;



public class SingletonClient extends Application {
	
	private static Stage primaryStage;

	@Override
	public void start(Stage primaryStage) throws Exception {
		// TODO Auto-generated method stub
		this.primaryStage=primaryStage;
		primaryStage.setTitle("Welcome");
		Parent root=FXMLLoader.load(getClass().getResource("../singleton/SingletionController.fxml"));
		Scene scene=new Scene(root,600,400);
		primaryStage.setScene(scene);
		primaryStage.show();
	}

	public static void main(String[] args) {
		launch(args);
	} 
	
}
